using UnityEngine;
using System.Collections;

namespace HutongGames.PlayMaker.Actions
{
    public class ArcadeReady : GameState
    {
        public FsmInt _readyCount;
        float startTime = 0.0f;
        public override void OnEnter()
        {
            base.OnEnter();
            startTime = 0.0f;
        }
        public override void OnUpdate()
        {
            startTime += Time.deltaTime;

            if (startTime > _readyCount.Value)
            {
                Finish();
            }
        }
        public override void Reset()
        {
            startTime = 0.0f;
        }
    }
}